﻿using PurchaseSales.Manage.Model.Entities;
using PurchaseSales.Manage.Services;

namespace PurchaseSales.Manage.Repositories
{
    public class UserRepository : Repository<Users>, IUserRepository
    {
        public Users GetUserByAgentId(string agentid)
        {
            return Session.QueryOver<Users>().Where(x => x.AgentId == agentid).SingleOrDefault();
        }
    }
}